New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

remark-squeeze-paragraphs

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-squeeze-paragraphs

remark plugin to remove empty paragraphs

5.0.1
Source
npm
Version published
Weekly downloads
1.2M
-0.12%
Maintainers
2
Weekly downloads
 
Created

What is remark-squeeze-paragraphs?

The remark-squeeze-paragraphs npm package is a plugin for the remark processor that removes empty paragraphs from Markdown content. It helps in cleaning up the Markdown by eliminating unnecessary whitespace and empty lines, making the content more compact and readable.

What are remark-squeeze-paragraphs's main functionalities?

Remove Empty Paragraphs

This feature removes empty paragraphs from the given Markdown content. The code sample demonstrates how to use the remark-squeeze-paragraphs plugin with the remark processor to clean up the Markdown by eliminating unnecessary empty lines.

const remark = require('remark');
const squeezeParagraphs = require('remark-squeeze-paragraphs');

const markdown = `
# Title


This is a paragraph.



Another paragraph.

`;

remark()
  .use(squeezeParagraphs)
  .process(markdown, function (err, file) {
    if (err) throw err;
    console.log(String(file));
  });

Other packages similar to remark-squeeze-paragraphs

Keywords

unified

FAQs

Package last updated on 30 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts